public class pradikatslogik {
    public static void main(String[] args) {
        System.out.println("Et modbevis for opagve 1 er: " + opg1());
        System.out.println("Et vidne for opgave 2 er: " + opg2());
    }

    public static int opg1() {
        for (int n = 1; true; n++) {
            if (125 * n * n * n + 375 * n * n + 375 * n + 125 < n * n * n * n) {
                return n;
            }
        }
    }

    public static int opg2() {
        for(int n = 1; true; n++){
            if(n*n+(n+1)*(n+1)==(n+50)*(n+50)){
                return n;
            }
        }
    }
}
